#include <string>
#include <set>
#include "pl_consts.h"
using namespace std;

set<string> eq_exts, sp_exts, pl_exts;
typedef string wstr;

#ifdef _WIN32
wstr default_dir = "%USERPROFILE%";
const char xslash = '\\';
wstr _UNAVALIBLE_NAME = "con";
wstr VIS_EXT = "*.dll";
wstr VIS_EXT_N = "dll";
const char *pl_str =  "\\plugins\\"; //root is a current dir
const char *pl_str64 = "\\plugins64\\";
#else
const char xslash = '/';
const wstr default_dir = "/";
//wstr _UNAVALIBLE_NAME = "/root/.bash_history";
const  wstr VIS_EXT = "*.so";
const wstr VIS_EXT_N = "so";
const char *pl_str =  "/plugins/"; //root is a current dir
const char *pl_str64 = "/plugins64/";
#endif



#ifdef _WIN32
const char * ENGINE_PLUGINSFILT = "bass";
const char * ENGINE_PLUGINSEXT = "dll";
#endif
#ifdef LINUX
const char * ENGINE_PLUGINSFILT = "libbass";
const char * ENGINE_PLUGINSEXT = "so";
#endif
#ifdef MACOS
const char * ENGINE_PLUGINSFILT = "libbass";
const char * ENGINE_PLUGINSEXT = "dylib";
#endif


bool eqexts_find(string obj)
{
    return (eq_exts.find(obj) != eq_exts.end());
}
bool spexts_find(string obj)
{
    return (sp_exts.find(obj) != sp_exts.end());
}

bool pl_exts_find(string obj)
{
    return (pl_exts.find(obj) != pl_exts.end());
}

void sp_init()
{

}

void pl_init()
{
    sp_exts.insert("m3u");
    sp_exts.insert("m3u8");
}


void pl_consts_init()
{
    eq_exts.insert("peq");
    pl_init();
    sp_init();

#ifdef _WIN32
#else
#endif
}

